package com.choosefine.it.manager.service.Impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.choosefine.it.base.dto.PageDTO;
import com.choosefine.it.manager.dao.ManagerEvaluationInfoMapper;
import com.choosefine.it.manager.model.ManagerEvaluationInfo;
import com.choosefine.it.manager.service.ManagerEvaluationInfoService;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;

/**
 * @author 潘钱钦
	下午3:50:28
 *
 */
@Service("managerEvaluationInfoService")
public class ManagerEvaluationInfoServiceImpl implements ManagerEvaluationInfoService {
	@Autowired
	private ManagerEvaluationInfoMapper managerEvaluationInfoMapper;
	/* (non-Javadoc)
	 * @see com.choosefine.it.manager.service.ManagerEvaluationInfoService#selectManagerEvaluationInfoByUserCode(java.lang.String, com.choosefine.it.dto.PageDTO)
	 */
	@Override
	public Page<ManagerEvaluationInfo> selectManagerEvaluationInfoByUserCode(String userCode, PageDTO pageDto) {
		
		PageHelper.startPage(pageDto.getPageNum(), pageDto.getPageSize());
		Page<ManagerEvaluationInfo> page = managerEvaluationInfoMapper.selectManagerEvaluationInfoByUserCode(userCode);
		return page;
	}

}
